<?php
/*
    Template Name: test-page
*/

error_reporting(E_ALL);
get_header("login");

    echo "
    <div id='loginmenu' class='login'>
    <ul>\n";
    dynamic_sidebar('header-sidebar');
    echo "
    </ul>
    </div>\n";
echo "
<div class='posts'>
";

if( have_posts() ) {
    while( have_posts() ) {
    echo "<div>\n";
        the_post();
        echo "<h1>";
        the_title();
        echo "</h1>
        <div>\n";
        the_content();
        echo "</div>\n";
    echo "</div>\n";
    }
}

echo "
</div>
<div class='sidebar'>
    <ul>
";

dynamic_sidebar('default-sidebar') ;

echo "
    </ul>
</div>\n";
echo "<div class='page_name'>test-page.php</div>";

get_footer();
?>

